/**
 * @(#) CongMoneyVO.as
 *
 * @date		2011. 03. 19.
 * @version		1.0
 * @author		bgh
 * @description	메인 리스트  Value Object
 *
 */
package com.skt.common_hr.babybt.model.vo
{
	import com.skt.common_hr.common.Variables;

	[Bindable]
	public class mainListOtVO
	{
		public var PERNR 		:String;		//사원번호 
		public var ENAME 		:String;		//성명 
		
		public var SPERIOD 		:String;		//기간
		
		
		public var ORGTX 		:String;		//성명
		public var REASN 		:String;
		public var CYES1 		:String;		// 청구함 동의
		public var CYES2 		:String;		// 동의함
		public var CYES3 		:String;		// 동의함
		
		
		public var CYES1N 		:String;		// 야간/휴일근로 선택
		public var CYES1H		:String;		// 야간/휴일근로 선택

		public var CYES2N 		:String;		// 야간/휴일근로 선택
		public var CYES2H		:String;		// 야간/휴일근로 선택		
		
		
		public var BIRDD_JSON 	:String;		//출산일
		public var BIRDD_TX		:String;		//출산일
		public var BIRDD 			:Date;			//출산일
		
				
		public var BEGDA_JSON 	:String;		//임신사실확인일
		public var BEGDA_TX 		:String;		//임신사실확인일
		public var BEGDA 			:Date;		//임신사실확인일
		 
		public var ENDDA_JSON 	:String;		//분만예정일
		public var ENDDA_TX 		:String;		//분만예정일
		public var ENDDA 			:Date;		//분만예정일
		
		 
		public var SDATE_JSON 	:String;		//신청일
		public var SDATE_TX		:String;		//신청일
		public var SDATE 			:Date;		//신청일
		
		public var STIME			:String;		//신청시간

				 
		public var WSTATX 		:String;		//처리상태 
		public var WSTATUS 	:String;		//처리상태코드 
		public var GWAREKEY 	:String;		//결재키 
 
		public var MON			:String;		
		public var WEEK			:String;				 		
				
		
		public function get PERNR_CHECK():String {
			return parseInt(PERNR).toString();
		}	
		
		public function get WSTATUS_CHECK():Boolean {
				//내사번과 리스트상의 사번이 틀리면 리턴 
				if(Variables.myPernr != PERNR) {
					return false;
				}
							
				if(WSTATUS=="1" || WSTATUS=="4" ) {
					return true;	
				} else {
					return false;
				}
		}		

		public function get WSTATUS_PRINT():Boolean {
			//return true;
				if(WSTATUS=="3" ) {
					return true;	
				} else {
					return false;
				}
		}				
		
	}
}